#include "block.h"
#include "math.h"

int main() {
    int i;
    int epsilon_test[N * M];
    for (i = 0; i < N * M; i++) {
        epsilon_test[i] = i * 73 % 7 == 0;
    }
    double result;
    double ref_res = 2.015625;
    BlockFrequency(&result, epsilon_test);

    printf("result = %f\n", result);
    if (fabs(result - ref_res) > 1e-6) {
        fprintf(stderr, "Benchmark results are incorrect\n");
        return -1;
    }

    printf("Success.\n");
    return 0;
}
